 $(document).ready(function () {
 
        //Prepare jtable plugin
        $('#ServiceVolTableContainer').jtable({
            title: 'Listes des services Vols',
//            selecting: true,
            paging: true, //Enables paging
            pageSize: 10, //Actually this is not needed since default value is 10.
            sorting: true, //Enables sorting
            defaultSorting: 'Nom ASC', //Optional. Default sorting on first load.
            
            actions: {
            	listAction: '/AgenceVoyage/serviceVol/getAllServiceVol',
                createAction: '/spring/user/addUser',
                updateAction: '/spring/users/updateUser',
                deleteAction: '/spring/users/deleteUser'
            },
            fields: {
                Id: {
                    key: true,
                    create: false,
                    edit: false,
                    list: false
                },
                Nom: {
                    title: 'Nom'
                },
                UrlWSL: {
                    title: 'URL WSDL',
                    width: '23%'
                },
                Description: {
                    title: 'Description',
                    width: '23%'
                },
                Pays: {
                    title: 'Pays'
                },
               Ville: {
                    title: 'Ville',
                    width: '23%'
                },
               NombrePlace: {
                    title: 'Nombre de place',
                    width: '23%'
                },
               TypeMoteur: {
                    title: 'Moteur',
                    width: '23%'
                },
                Etat: {
                    title: 'Etat',
                    width: '23%'
                },


            }
            
        });
 
        //Load student list from server
        $('#ServiceVolTableContainer').jtable('load');
    });
 